; Disassembly of the file "Z:\home\knoppix\Public\Boot_Sector.bin"
; 
; CPU Type: Z80
; 
; Created with dZ80 2.0
; 
; on Tuesday, 10 of January 2017 at 09:28 PM
; 
0000 C38000	JP	$0080

0003 80		DEFB	$80	; This will be left behind as I/O Byte
0004 00		DEFB	$00
0005 00		DEFB	$00
0006 00		DEFB	$00
0007 00		DEFB	$00
0008 00		DEFB	$00
0009 00		DEFB	$00
000A 00		DEFB	$00
000B 00		DEFB	$00
000C 00		DEFB	$00
000D 00		DEFB	$00
000E 00		DEFB	$00
000F 00		DEFB	$00
0010 00		DEFB	$00
0011 00		DEFB	$00
0012 00		DEFB	$00
0013 00		DEFB	$00
0014 00		DEFB	$00
0015 00		DEFB	$00
0016 00		DEFB	$00
0017 00		DEFB	$00
0018 00		DEFB	$00
0019 00		DEFB	$00
001A 00		DEFB	$00
001B 00		DEFB	$00
001C 00		DEFB	$00
001D 00		DEFB	$00
001E 00		DEFB	$00
001F 00		DEFB	$00
0020 00		DEFB	$00
0021 00		DEFB	$00
0022 00		DEFB	$00
0023 00		DEFB	$00
0024 00		DEFB	$00
0025 00		DEFB	$00
0026 00		DEFB	$00
0027 00		DEFB	$00
0028 00		DEFB	$00
0029 00		DEFB	$00
002A 00		DEFB	$00
002B 00		DEFB	$00
002C 00		DEFB	$00
002D 00		DEFB	$00
002E 00		DEFB	$00
002F 00		DEFB	$00
0030 00		DEFB	$00
0031 00		DEFB	$00
0032 00		DEFB	$00
0033 00		DEFB	$00
0034 00		DEFB	$00
0035 00		DEFB	$00
0036 00		DEFB	$00
0037 00		DEFB	$00
0038 00		DEFB	$00
0039 00		DEFB	$00
003A 00		DEFB	$00
003B 00		DEFB	$00
003C 00		DEFB	$00
003D 00		DEFB	$00
003E 00		DEFB	$00
003F 00		DEFB	$00
0040 00		DEFB	$00
0041 00		DEFB	$00
0042 00		DEFB	$00
0043 00		DEFB	$00
0044 00		DEFB	$00
0045 00		DEFB	$00
0046 00		DEFB	$00
0047 00		DEFB	$00
0048 00		DEFB	$00
0049 00		DEFB	$00
004A 00		DEFB	$00
004B 00		DEFB	$00
004C 00		DEFB	$00
004D 00		DEFB	$00
004E 00		DEFB	$00
004F 00		DEFB	$00
0050 00		DEFB	$00
0051 00		DEFB	$00
0052 00		DEFB	$00
0053 00		DEFB	$00
0054 00		DEFB	$00
0055 00		DEFB	$00
0056 00		DEFB	$00
0057 00		DEFB	$00
0058 00		DEFB	$00
0059 00		DEFB	$00
005A 00		DEFB	$00
005B 00		DEFB	$00
005C 00		DEFB	$00
005D 00		DEFB	$00
005E 00		DEFB	$00
005F 00		DEFB	$00
0060 00		DEFB	$00
0061 00		DEFB	$00
0062 00		DEFB	$00
0063 00		DEFB	$00
0064 00		DEFB	$00
0065 00		DEFB	$00
0066 00		DEFB	$00
0067 00		DEFB	$00
0068 00		DEFB	$00
0069 00		DEFB	$00
006A 00		DEFB	$00
006B 00		DEFB	$00
006C 00		DEFB	$00
006D 00		DEFB	$00
006E 00		DEFB	$00
006F 00		DEFB	$00
0070 00		DEFB	$00
0071 00		DEFB	$00
0072 00		DEFB	$00
0073 00		DEFB	$00
0074 00		DEFB	$00
0075 00		DEFB	$00
0076 00		DEFB	$00
0077 00		DEFB	$00
0078 00		DEFB	$00
0079 00		DEFB	$00
007A 00		DEFB	$00
007B 00		DEFB	$00
007C 00		DEFB	$00
007D 00		DEFB	$00
007E 00		DEFB	$00
007F 00		DEFB	$00

0080 F3		DI
0081 210001	LD	HL,$0100
0084 F9		LD	SP,HL		; set stack at $0100
0085 3E92	LD	A,$92		; control word for 8255: Mode Set flag=active,
;					; 			Group A: Select Mode 0,
;					;				 Port A set to Input mode,
;					;				 Port C (upper half) set to Output Mode,
;					;			Group B: Select Mode 0,
;					;				 Port B set to Input Mode,
;					;				 Port C (lower half) set to Output Mode
0087 D3DF	OUT	($DF),A		; write control word to 8255
0089 D3DF	OUT	($DF),A		; write control word to 8255 (again !?)
008B 3E41	LD	A,$41
008D D3FE	OUT	($FE),A		; set 06 to "1" for VRAM access, border to blue
008F 1100F6	LD	DE,$F600
0092 01000A	LD	BC,$0A00
0095 EDB0	LDIR			; copy $0100-$0AFF to $F600-$FFFF	(BIOS)
					; when done, HL=$0B00
0097 11006E	LD	DE,$6E00
009A 010006	LD	BC,$0600
009D EDB0	LDIR			; copy $0B00-$10FF to $6E00-$73FF	(BLOCK#3, 1536 bytes)
					; when done, HL=$1100
009F 110066	LD	DE,$6600
00A2 010008	LD	BC,$0800
00A5 EDB0	LDIR			; copy $1100-$18FF to $6600-$6DFF	(BLOCK#2, 2048 bytes)
					; when done, HL=$1900
00A7 110063	LD	DE,$6300
00AA 010003	LD	BC,$0300
00AD EDB0	LDIR			; copy $1900-$1BFF to $6300-$65FF	(BLOCK#1, 768 bytes)
					; when done, HL=$1C00
00AF 1100E8	LD	DE,$E800
00B2 01000E	LD	BC,$0E00
00B5 EDB0	LDIR			; copy $1C00-$29FF to $E800-$F5FF	(BDOS, 3584 bytes)
					; when done, HL=$2A00
00B7 110078	LD	DE,$7800
00BA 010008	LD	BC,$0800
00BD EDB0	LDIR			; copy $2A00-$31FF to $7800-$7FFF	(CCP, 2048 bytes)
					; when done, HL=$3200
					; CCP will be relocated to $E000-$E7FF by BIOS CTC INT. ROUTINE #2 (F8C9)
00BF CBB7	RES	6,A
00C1 D3FE	OUT	($FE),A		; set 06 to "0" for DRAM access
00C3 21FF00	LD	HL,$00FF
00C6 110001	LD	DE,$0100
00C9 0106E7	LD	BC,$E706
00CC 00		NOP			; \ deleted
00CD 00		NOP			; / LDIR ?
00CE C300F6	JP	$F600		; jump to start of BIOS (BIOS function #0, BOOT)

00D1 00		DEFB	$00
00D2 00		DEFB	$00
00D3 00		DEFB	$00
00D4 00		DEFB	$00
00D5 00		DEFB	$00
00D6 00		DEFB	$00
00D7 00		DEFB	$00
00D8 00		DEFB	$00
00D9 00		DEFB	$00
00DA 00		DEFB	$00
00DB 00		DEFB	$00
00DC 00		DEFB	$00
00DD 00		DEFB	$00
00DE 00		DEFB	$00
00DF 00		DEFB	$00
00E0 00		DEFB	$00
00E1 00		DEFB	$00
00E2 00		DEFB	$00
00E3 00		DEFB	$00
00E4 00		DEFB	$00
00E5 00		DEFB	$00
00E6 00		DEFB	$00
00E7 00		DEFB	$00
00E8 00		DEFB	$00
00E9 00		DEFB	$00
00EA 00		DEFB	$00
00EB 00		DEFB	$00
00EC 00		DEFB	$00
00ED 00		DEFB	$00
00EE 00		DEFB	$00
00EF 00		DEFB	$00
00F0 00		DEFB	$00
00F1 00		DEFB	$00
00F2 00		DEFB	$00
00F3 00		DEFB	$00
00F4 00		DEFB	$00
00F5 00		DEFB	$00
00F6 00		DEFB	$00
00F7 00		DEFB	$00
00F8 00		DEFB	$00
00F9 00		DEFB	$00
00FA 00		DEFB	$00
00FB 00		DEFB	$00
00FC 00		DEFB	$00
00FD 00		DEFB	$00
00FE 00		DEFB	$00
00FF 00		DEFB	$00

0100 C32DFE	JP	$FE2D	; ######## START OF BIOS ########
0103 C37EF8	JP	$F87E
0106 C313F7	JP	$F713
0109 C376F7	JP	$F776
010C C385F7	JP	$F785
010F C3D1F9	JP	$F9D1
0112 C3DCF9	JP	$F9DC
0115 C31EFA	JP	$FA1E
0118 C3D9F7	JP	$F7D9
011B C395F7	JP	$F795
011E C3DBF7	JP	$F7DB
0121 C3E0F7	JP	$F7E0
0124 C3E6F7	JP	$F7E6
0127 C32EF8	JP	$F82E
012A C334F8	JP	$F834
012D C3C2F9	JP	$F9C2
0130 C3EBF7	JP	$F7EB
0133 C31AF8	JP	$F81A
0136 C31EF8	JP	$F81E
0139 C3B6F9	JP	$F9B6
013C C39EFA	JP	$FA9E

013F 1E		DEFB	$1E
0140 40		DEFB	$40
0141 00		DEFB	$00
0142 00		DEFB	$00
0143 07		DEFB	$07
0144 00		DEFB	$00
0145 00		DEFB	$00
0146 63		DEFB	$63
0147 11		DEFB	$11
0148 08		DEFB	$08
0149 01		DEFB	$01
014A 00		DEFB	$00
014B 19		DEFB	$19
014C 00		DEFB	$00
014D 01		DEFB	$01
014E FF		DEFB	$FF
014F 06		DEFB	$06
0150 00		DEFB	$00
0151 00		DEFB	$00
0152 00		DEFB	$00
0153 00		DEFB	$00
0154 00		DEFB	$00
0155 00		DEFB	$00
0156 00		DEFB	$00
0157 00		DEFB	$00
0158 00		DEFB	$00
0159 00		DEFB	$00
015A 00		DEFB	$00
015B 00		DEFB	$00
015C 00		DEFB	$00
015D 00		DEFB	$00
015E 00		DEFB	$00
015F 04		DEFB	$04
0160 02		DEFB	$02
0161 0A		DEFB	$0A
0162 20		DEFB	$20
0163 FF		DEFB	$FF
0164 EF		DEFB	$EF
0165 3F		DEFB	$3F
0166 77		DEFB	$77
0167 F6		DEFB	$F6
0168 50		DEFB	$50
0169 00		DEFB	$00
016A 04		DEFB	$04
016B 0F		DEFB	$0F
016C 00		DEFB	$00
016D 8F		DEFB	$8F
016E 01		DEFB	$01
016F FF		DEFB	$FF
0170 00		DEFB	$00
0171 F0		DEFB	$F0
0172 00		DEFB	$00
0173 20		DEFB	$20
0174 00		DEFB	$00
0175 00		DEFB	$00
0176 00		DEFB	$00
0177 00		DEFB	$00
0178 03		DEFB	$03
0179 06		DEFB	$06
017A 09		DEFB	$09
017B 02		DEFB	$02
017C 05		DEFB	$05
017D 08		DEFB	$08
017E 01		DEFB	$01
017F 04		DEFB	$04
0180 07		DEFB	$07
0181 02		DEFB	$02
0182 09		DEFB	$09
0183 20		DEFB	$20
0184 FF		DEFB	$FF
0185 EF		DEFB	$EF
0186 3F		DEFB	$3F
0187 98		DEFB	$98
0188 F6		DEFB	$F6
0189 24		DEFB	$24
018A 00		DEFB	$00
018B 03		DEFB	$03
018C 07		DEFB	$07
018D 00		DEFB	$00
018E AA		DEFB	$AA
018F 00		DEFB	$00
0190 3F		DEFB	$3F
0191 00		DEFB	$00
0192 C0		DEFB	$C0
0193 00		DEFB	$00
0194 10		DEFB	$10
0195 00		DEFB	$00
0196 02		DEFB	$02
0197 00		DEFB	$00
0198 00		DEFB	$00
0199 04		DEFB	$04
019A 08		DEFB	$08
019B 03		DEFB	$03
019C 07		DEFB	$07
019D 02		DEFB	$02
019E 06		DEFB	$06
019F 01		DEFB	$01
01A0 05		DEFB	$05
01A1 00		DEFB	$00
01A2 00		DEFB	$00
01A3 00		DEFB	$00
01A4 00		DEFB	$00
01A5 00		DEFB	$00
01A6 00		DEFB	$00
01A7 00		DEFB	$00
01A8 00		DEFB	$00
01A9 00		DEFB	$00
01AA 00		DEFB	$00
01AB 00		DEFB	$00
01AC 00		DEFB	$00
01AD 00		DEFB	$00
01AE 00		DEFB	$00
01AF 00		DEFB	$00
01B0 00		DEFB	$00
01B1 00		DEFB	$00
01B2 00		DEFB	$00
01B3 00		DEFB	$00
01B4 00		DEFB	$00
01B5 00		DEFB	$00
01B6 00		DEFB	$00
01B7 00		DEFB	$00
01B8 00		DEFB	$00
01B9 00		DEFB	$00
01BA 00		DEFB	$00
01BB 00		DEFB	$00
01BC 00		DEFB	$00
01BD 00		DEFB	$00
01BE 00		DEFB	$00
01BF 00		DEFB	$00
01C0 00		DEFB	$00
01C1 00		DEFB	$00
01C2 02		DEFB	$02
01C3 09		DEFB	$09
01C4 20		DEFB	$20
01C5 FF		DEFB	$FF
01C6 EF		DEFB	$EF
01C7 3F		DEFB	$3F
01C8 D9		DEFB	$D9
01C9 F6		DEFB	$F6
01CA 48		DEFB	$48
01CB 00		DEFB	$00
01CC 04		DEFB	$04
01CD 0F		DEFB	$0F
01CE 00		DEFB	$00
01CF 5E		DEFB	$5E
01D0 01		DEFB	$01
01D1 7F		DEFB	$7F
01D2 00		DEFB	$00
01D3 C0		DEFB	$C0
01D4 00		DEFB	$00
01D5 20		DEFB	$20
01D6 00		DEFB	$00
01D7 02		DEFB	$02
01D8 00		DEFB	$00
01D9 00		DEFB	$00
01DA 02		DEFB	$02
01DB 04		DEFB	$04
01DC 06		DEFB	$06
01DD 08		DEFB	$08
01DE 01		DEFB	$01
01DF 03		DEFB	$03
01E0 05		DEFB	$05
01E1 07		DEFB	$07
01E2 00		DEFB	$00
01E3 1A		DEFB	$1A
01E4 07		DEFB	$07
01E5 80		DEFB	$80
01E6 BF		DEFB	$BF
01E7 17		DEFB	$17
01E8 F9		DEFB	$F9
01E9 F6		DEFB	$F6
01EA 1A		DEFB	$1A
01EB 00		DEFB	$00
01EC 03		DEFB	$03
01ED 07		DEFB	$07
01EE 00		DEFB	$00
01EF F2		DEFB	$F2
01F0 00		DEFB	$00
01F1 3F		DEFB	$3F
01F2 00		DEFB	$00
01F3 C0		DEFB	$C0
01F4 00		DEFB	$00
01F5 10		DEFB	$10
01F6 00		DEFB	$00
01F7 02		DEFB	$02
01F8 00		DEFB	$00
01F9 00		DEFB	$00
01FA 06		DEFB	$06
01FB 0C		DEFB	$0C
01FC 12		DEFB	$12
01FD 18		DEFB	$18
01FE 04		DEFB	$04
01FF 0A		DEFB	$0A